package com.github.wxiaoqi.security.admin.feign;

import java.util.Map;

import com.github.wxiaoqi.security.admin.vo.BaseAreaRequestParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken;

@FeignClient(value = "flyray-crm-core")
public interface CrmCoreFeign {
	
	/**
	 * 获取地区详情
	 * @param req
	 * @return
	 */
	@RequestMapping(value = "feign/baseArea/queryInfo",method = RequestMethod.POST)
	public Map<String, Object> queryBaseAreaInfo(BaseAreaRequestParam param);
	
	@RequestMapping(value = "feign/sms/sendCode", method = RequestMethod.POST)
	public Map<String, Object> sendCode(@RequestBody Map<String, Object> param);
	
	@RequestMapping(value = "feign/sms/validateSmsCode", method = RequestMethod.POST)
	public Map<String, Object> validateSmsCode(@RequestBody Map<String, Object> param);
}